package com.xiaoxie.system.service;

import com.github.pagehelper.PageInfo;
import com.xiaoxie.system.domain.DictType;
import com.xiaoxie.system.domain.DictValue;

import java.util.List;
import java.util.Map;

public interface DictService {

    List<DictType> getAllDictTypes();

    void addDictType(DictType dictType);

    void updateDictType(DictType dictType);

    void deleteDictTypeById(Integer id);

    PageInfo<DictType> selectDictTypeByPage(Integer pageNum, DictType dictType);

    boolean dictTypeHasType(String type);

    DictType getDictTypeById(Integer id);

    void batchDeleteDictType(List<Integer> ids);

    List<Map<String, Object>> getDictTypeAndValueForExcel(DictType dictType);
}
